package org.mclll.xwangplugin.questTracking.config;

import org.bukkit.configuration.file.YamlConfiguration;

import java.io.File;

/**
 * @author: geduo
 * @date: 2023/10/16 13:27
 */
public class QuestTrackingConfig {
    public static final String CONFIG_FILE_NAME = "questsTracking.yml";
    private static Boolean ENABLE;
    public static void init(File file) {
        YamlConfiguration config = YamlConfiguration.loadConfiguration(new File(file, CONFIG_FILE_NAME));
        ENABLE = config.getBoolean("enable");
    }
    public static Boolean getEnable() {
        return ENABLE;
    }

}
